/**
 * Created by liuyanjun on 2017/6/27.
 *
 * 配置编译环境和线上环境之间的切换
 * baseUrl:域名地址
 * routerMode:路由模式
 * imgBaseUrl:图片所在域名地址
 */

let baseUrl='';
let routerMode='history';
// const imgBaseUrl = "https://fuss10.elemecdn.com";
let imgBaseUrl = 'http://images.cangdu.org/';

if(process.env.NODE_ENV =='development'){
  baseUrl='http://localhost:8081';
  routerMode = 'hash';
}else{
  baseUrl="https://mainsite-restapi.ele.me";
  routerMode='hash';
}

export {
  baseUrl,
  routerMode,
  imgBaseUrl
}



